package com.parking.renters.model.stallCall.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
@ApiModel("出租客手机登录参数")
public class RentersPhoneForm {

    /***
     ("用户电话")：rentersInfoTel;
     */
    @Pattern(regexp="1[3-9][0-9]{9}",message = "手机格式错误")
    @ApiModelProperty("手机号")
    private String phone;
    /***
     ("验证码")：code;
     */
    @ApiModelProperty("验证码")
    private String code;
}
